<div class="row-fluid">
  <ul class="nav nav-pills">
    <li class="active">
      <a href="#">管理</a>
    </li>
    <li><a href="<?php echo $this->createUrl('create') ?>">添加</a></li>
  </ul>
</div>
<div class="row-fluid">
 <?php echo $this->renderPartial('_search',array('model'=>$model)) ?>
  <table class="table table-bordered table-hover">
        <thead>
          <tr>
            <th>id</th>
            <th class='span4'>名称</th>
            <th>网址</th>
            <th>创建时间</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          <?php foreach ($data->getData() as $item) {?>
            <tr>
              <td><?php echo $item->id ?></td>
              <td><?php echo $item->name ?></td>
              <td><a href="<?php echo $item->url ?>" title="<?php echo $item->url ?>">点击进入</a></td>
              <td><?php echo Date('Y-m-d H:i',$item->createtime) ?></td>
              <td>
                <a href="<?php echo $this->createUrl('Update',array("id"=>$item->id)) ?>" title="编辑"><i class="icon-edit"></i></a>&nbsp;&nbsp;
                <a href="<?php echo $this->createUrl('Delete',array("id"=>$item->id)) ?>" data-trigger="confirm" data-content='是否确定删除？' title="删除"><i class="icon-remove"></i></a>
              </td>
            </tr>
          <?php } ?>
        </tbody>
</table>
<?php $this->widget("CBootstrapPager",array('pages'=>$data->getPagination())) ?>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/scojs/js/sco.modal.js" type="text/javascript" charset="utf-8" async defer></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/scojs/js/sco.confirm.js" type="text/javascript" charset="utf-8" async defer></script>
</div>
